<%--
  Created by IntelliJ IDEA.
  User: zhangs
  Date: 2021/3/23
  Time: 21:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>测试</title>
</head>
<body>
<h1>标题</h1>
<%
    // 如果需要在jsp中写代码，需要写在脚本中
    // 获取在Demo03中存储的数据
    String name = (String) request.getAttribute("name");
    // 打印到控制台
    System.out.println("name:" + name);
    // 存储元素
    request.setAttribute("age", 18);
%>

<form method="post" enctype="multipart/form-data" action="${pageContext.request.contextPath}/demo08">
    文 件：<input type="file" name="file"><br/>
    <button type="submit">上传</button>
</form>
</body>
</html>
